package com.leyou.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.order.data.dto.OrderGoodsDto;
import com.leyou.order.data.entity.OrderGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xhh
 * @since 2022-07-04
 */
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {
    List<OrderGoodsDto> waitOrderState(@Param("userId")Integer userId,@Param("state")Integer state);
    OrderGoodsDto orderById(@Param("id")Integer id);
    List<OrderGoodsDto> orderByCartNumber(@Param("cartNumber")String cartNumber);
    String getSkuName(Integer skuId);
}
